package com.ktgj.customer.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 活动订单,暂时团单使用对象 mall_activity_order
 * 
 * @author ruoyi
 * @date 2022-05-30
 */
public class MallActivityOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long activityOrderId;

    /** 活动编号 */
    @Excel(name = "活动编号")
    private Long activityId;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openId;

    /** $column.columnComment */
    @Excel(name = "微信openid")
    private String unionId;

    /** 过期时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "过期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expireTime;

    /** 父编号,为null时openid为团长 */
    @Excel(name = "父编号,为null时openid为团长")
    private Long parentActivityOrderId;

    /** 组团状态 0 组团中  10 组团成功  20 组团失败 30 创建订单成功   60 已取消 */
    @Excel(name = "组团状态 0 组团中  10 组团成功  20 组团失败 30 创建订单成功   60 已取消")
    private Long status;

    /** $column.columnComment */
    @Excel(name = "组团状态 0 组团中  10 组团成功  20 组团失败 30 创建订单成功   60 已取消")
    private String remarks;

    /** 删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deleteTime;

    public void setActivityOrderId(Long activityOrderId) 
    {
        this.activityOrderId = activityOrderId;
    }

    public Long getActivityOrderId() 
    {
        return activityOrderId;
    }
    public void setActivityId(Long activityId) 
    {
        this.activityId = activityId;
    }

    public Long getActivityId() 
    {
        return activityId;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }
    public void setUnionId(String unionId) 
    {
        this.unionId = unionId;
    }

    public String getUnionId() 
    {
        return unionId;
    }
    public void setExpireTime(Date expireTime) 
    {
        this.expireTime = expireTime;
    }

    public Date getExpireTime() 
    {
        return expireTime;
    }
    public void setParentActivityOrderId(Long parentActivityOrderId) 
    {
        this.parentActivityOrderId = parentActivityOrderId;
    }

    public Long getParentActivityOrderId() 
    {
        return parentActivityOrderId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setRemarks(String remarks) 
    {
        this.remarks = remarks;
    }

    public String getRemarks() 
    {
        return remarks;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("activityOrderId", getActivityOrderId())
            .append("activityId", getActivityId())
            .append("openId", getOpenId())
            .append("unionId", getUnionId())
            .append("expireTime", getExpireTime())
            .append("parentActivityOrderId", getParentActivityOrderId())
            .append("status", getStatus())
            .append("remarks", getRemarks())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("deleteTime", getDeleteTime())
            .toString();
    }
}
